package com.yzd.learnjava.enumerated;

import com.yzd.learnjava.util.Print;

public enum OverrideConstantSpecific {
	NUT, BOLT,
	WASHER{
		void f() {
			Print.print("Override Method");
		}
	};
	
	void f() {
		Print.print("default behavior");
	}
	
	public static void main(String[] args) {
		for(OverrideConstantSpecific overrideConstantSpecific : values()) {
			Print.printnb(overrideConstantSpecific + " : ");
			overrideConstantSpecific.f();
		}
	}
}
